package com.project.bean;

import java.util.List;

/**
 * 房间实体类
 */
public class RoomBean {
    /**
     * 房间编号
     */
    private Integer roomId;
    /**
     * 房间地址
     */
    private String addr;
    /**
     * 房间容量
     */
    private Integer capacity;
    /**
     * 房间状态
     */
    private String status="正常";
    /**
     * 房间类型
     */
    private String type;
    /**
     * 已住人数
     */
    private Integer inCount;
    /**
     * 已住的学生集合
     */
    private List<StudentBean> studentList;


    public RoomBean() {
    }

    public RoomBean(String addr, Integer capacity, String type) {
        this.addr = addr;
        this.capacity = capacity;
        this.type = type;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public Integer getCapacity() {
        return capacity;
    }

    public void setCapacity(Integer capacity) {
        this.capacity = capacity;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getInCount() {
        return inCount;
    }

    public void setInCount(Integer inCount) {
        this.inCount = inCount;
    }

    public List<StudentBean> getList() {
        return studentList;
    }

    public void setList(List<StudentBean> list) {
        this.studentList = list;
    }

    @Override
    public String toString() {
        return "RoomBean{" +
                "roomId=" + roomId +
                ", addr='" + addr + '\'' +
                ", capacity=" + capacity +
                ", status='" + status + '\'' +
                ", type='" + type + '\'' +
                ", inCount=" + inCount +
                ", list=" + studentList +
                "}\n";
    }
}
